package o;

import com.huawei.appgallery.appcomment.impl.bean.GetCommentResBean;
import com.huawei.appgallery.appcomment.impl.bean.GetCommentResBean.AppCommentInfo;
import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import com.huawei.appgallery.serverreqkit.api.listener.IServerCallBack;
import com.huawei.hmf.annotation.ApiDefine;

@ApiDefine(uri = bcm.class)
public class bcq implements bcm {

    static class a implements IServerCallBack {
        private bcn ˋ;
        private String ˏ;

        public a(String str, bcn o_bcn) {
            this.ˏ = str;
            this.ˋ = o_bcn;
        }

        public void prePostResult(BaseRequest o_cvu, ResponseBean responseBean) {
        }

        public void notifyResult(BaseRequest o_cvu, ResponseBean responseBean) {
            if ((responseBean instanceof GetCommentResBean) && responseBean.getResponseCode() == 0 && responseBean.getRtnCode_() == 0) {
                GetCommentResBean getCommentResBean = (GetCommentResBean) responseBean;
                if (getCommentResBean.ˋ() != null && getCommentResBean.ˋ().size() > 0) {
                    AppCommentInfo appCommentInfo = (AppCommentInfo) getCommentResBean.ˋ().get(0);
                    if (appCommentInfo != null && ((this.ˏ == null || this.ˏ.equals(appCommentInfo.ॱᐝ())) && this.ˋ != null)) {
                        this.ˋ.ˊ(appCommentInfo.ͺ(), appCommentInfo.ॱ(), appCommentInfo.ʼ());
                        return;
                    }
                }
                this.ˋ.ˊ("", "", "");
            }
        }
    }

    public void ॱ(String str, String str2, int i, int i2, bcn o_bcn) {
        cvt o_bdi = new bdi();
        o_bdi.ˎ(1);
        o_bdi.ˋ(str);
        o_bdi.ॱ(1);
        o_bdi.ˏ(12);
        o_bdi.ॱ(str2);
        o_bdi.setServiceType_(i2);
        o_bdi.ˎ(i);
        if (o_bdi.ˊ() == 0) {
            o_bdi.ˋ(1);
        }
        cfw.ˎ(o_bdi, new a(str2, o_bcn));
    }
}
